EDGA0=00, EDGCNTA_EN=0, EDGA1=00, ONESHOTA=0, ARMA=0, INP_SELA=0
Capture Control A Register
ARMA | Arm A 0 (0): Input capture operation is disabled. 1 (1): Input capture operation as specified by CAPTCTRLA[EDGAx] is enabled. |
ONESHOTA | One Shot Mode A 0 (0): Free running mode is selected. If both capture circuits are enabled, then capture circuit 0 is armed first after CAPTCTRLA[ARMA] is set. Once a capture occurs, capture circuit 0 is disarmed and capture circuit 1 is armed. After capture circuit 1 performs a capture, it is disarmed and capture circuit 0 is re-armed. The process continues indefinitely. If only one of the capture circuits is enabled, then captures continue indefinitely on the enabled capture circuit. 1 (1): One shot mode is selected. If both capture circuits are enabled, then capture circuit 0 is armed first after CAPTCTRLA[ARMA] is set. Once a capture occurs, capture circuit 0 is disarmed and capture circuit 1 is armed. After capture circuit 1 performs a capture, it is disarmed and CAPTCTRLA[ARMA] is cleared. No further captures will be performed until CAPTCTRLA[ARMA] is set again. If only one of the capture circuits is enabled, then a single capture will occur on the enabled capture circuit and CAPTCTRLA[ARMA] is then cleared. |
EDGA0 | Edge A 0 0 (00): Disabled 1 (01): Capture falling edges 2 (10): Capture rising edges 3 (11): Capture any edge |
EDGA1 | Edge A 1 0 (00): Disabled 1 (01): Capture falling edges 2 (10): Capture rising edges 3 (11): Capture any edge |
INP_SELA | Input Select A 0 (0): Raw PWM_A input signal selected as source. 1 (1): Output of edge counter/compare selected as source. When this bitfield is set to 1, the internal edge counter is enabled and the rising and/or falling edges specified by the CAPTCTRLA[EDGA0] and CAPTCTRLA[EDGA1] fields are ignored. The software must still place a value other than 00 in either or both of the CAPTCTLRA[EDGA0] and/or CAPTCTRLA[EDGA1] fields in order to enable one or both of the capture registers. |
EDGCNTA_EN | Edge Counter A Enable 0 (0): Edge counter disabled and held in reset 1 (1): Edge counter enabled |
CFAWM | Capture A FIFOs Water Mark |
CA0CNT | Capture A0 FIFO Word Count |
CA1CNT | Capture A1 FIFO Word Count |